package blocos;

import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;
import javax.swing.JOptionPane;

public class BlockFanGUI extends BlockLEDGUI{
	public BlockFanGUI()
	{
		super();
		super.onPath = "fan on.jpg";
		super.offPath = "fan off.jpg";
		try {
			imgOnBig = ImageIO.read(new File(defaultImagePathBig + onPath));
       		imgOnMedium = ImageIO.read(new File(defaultImagePathMedium + onPath));
       		imgOnSmall = ImageIO.read(new File(defaultImagePathSmall + onPath));
       		
       		imgOffBig = ImageIO.read(new File(defaultImagePathBig + offPath));
       		imgOffMedium = ImageIO.read(new File(defaultImagePathMedium + offPath));
       		imgOffSmall = ImageIO.read(new File(defaultImagePathSmall + offPath));
		} catch (IOException e) {
			JOptionPane.showMessageDialog(null, "Imagem nao encontrada", "Erro", JOptionPane.ERROR_MESSAGE);
	    }
   		
	}
}
